import service from "../index";


export const pageProd = (params) => {
  return service({
      method:'GET',
      url:'/prod/pageProd',
      params
  })


};

export const categoryInfo = (params) => {
  return service({
      method:'GET',
      url:'/category/categoryInfo',
      params
  })


};

export const indexImgs = (params) => {
  return service({
      method:'GET',
      url:'/indexImgs',
      params
  })


};


export const orderCount = (params) => {
  return service({
      method:'GET',
      url:'/p/myOrder/orderCount',
      params
  })


};

export const prodTagList = (params) => {
  return service({
      method:'GET',
      url:'/prod/tag/prodTagList',
      params
  })


};

export const getTodayGrab = (params) => {
    return service({
        method:'GET',
        url:'/prod/prodListByTagId',
        params
    })

 
};


export const tagProdList = (params) => {
  return service({
      method:'GET',
      url:'/prod/tagProdList',
      params
  })


};



export const recommendList = (data) => {
  //   return service({
  //       method:'POST',
  //       url:'/aps/project/queryProjectInfo',
  //       data
  //   })

  return new Promise((res) => {
    res({
      code: 200,
      data: [
        {
          imgUrl:
            "https://img30.360buyimg.com/jdcms/s460x460_jfs/t1/239786/19/4948/216067/65d887c1Fb10f5e15/36f4ac66a0b1f530.jpg.avif",
          goodsTitle: "【2包起包起包起包起购】松糕吃",
          goodsPrice: "13.0",
          goodsSold:132,
          shopName:'秋茗铁观音专卖店',
          tips:'年货',
        },
        {
          imgUrl:
            "https://img30.360buyimg.com/jdcms/s460x460_jfs/t1/239786/19/4948/216067/65d887c1Fb10f5e15/36f4ac66a0b1f530.jpg.avif",
          goodsTitle: "【2包起购】松糕吃",
          goodsPrice: "13.0",
          goodsSold:132,
          shopName:'秋茗铁观音专卖店',
         
        },
     
      ],
    });
  });
};


export const topNoticeList = () => {
    return service({
        method:'GET',
        url:'/shop/notice/topNoticeList',
        
    })


};


